
********************************************************************************
**#	TABLE IA-3: Engagement Results with Python Script
********************************************************************************

*Set path
capture cd "C:\Users\austin.starkweather\Dropbox\Research\CD&A Disclosure\Analysis"
capture cd "C:\Users\joshw\Dropbox\CD&A Disclosure\Analysis"
use "Data/Temp/cda_n426_final.dta", clear

********************************************************************************
*Panel A
********************************************************************************
tabstat shareldr_d_p1 engage_d_python shareldr_count_p1 engage_c_python, stat(mean p50 sd n) col(stat)long by(iss_treat)
ttest shareldr_d_p1, by(iss_treat)
ttest engage_d_python, by(iss_treat)
ttest shareldr_count_p1, by(iss_treat)
ttest engage_c_python, by(iss_treat)

********************************************************************************
*Panel B
********************************************************************************
est clear
local controls size_w mtb_w roa_w lev_w abn_ret_1yr ln_analyst io_pct0 issrecno td_cboard_hc comp_committee_tenure_ave dualclass dirvote_for_iss
eststo: xi: reghdfe shareldr_d_p1 iss_treat `controls', absorb(fyear sic1)
eststo: xi: reghdfe engage_d_python iss_treat `controls', absorb(fyear sic1)
eststo: xi: ppmlhdfe shareldr_count_p1 iss_treat `controls', absorb(fyear sic1)
eststo: xi: ppmlhdfe engage_c_python iss_treat `controls', absorb(fyear sic1)
esttab using "Output\Final\TIA3B_engage_python.csv", b(3) ar2 pr2 title("Engagement with python only scraped sample") varwidth(25) order(iss_treat size_w mtb_w roa_w lev_w abn_ret_1yr ln_analyst io_pct0 issrecno td_cboard_hc comp_committee_tenure_ave dualclass dirvote_for_iss) star(* 0.10 ** 0.05  *** 0.01 ) replace
